import request from '@/utils/request'
import { getToken, TokenKey } from '@/utils/auth'
//路侧停车记录列表
export function fetchList(query) {
  return request({
    url: '/carcome/outdoor/list',
    method: 'post',
    data: query
  })
}

// 路侧停车记录详情
export function getOutdoor(id) {
  return request({
    url: `/carcome/outdoor/${id}`,
    method: 'get',
  })
}

// 停车记录操作日志列表
export function operationLogList(data) {
  return request({
    url: `/carcome/operationLog/list/${data.id}`,
    method: 'post',
    data
  })
}

//结束路侧停车记录订单
export function completeOrder(query) {
  return request({
    url: '/carcome/outdoor/completeOrder',
    method: 'post',
    data: query
  })
}
